<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
<script>
function iFrameOn(){
    rte.document.designMode = 'On';
}

function createLink(selected){
    rte.document.execCommand('createlink', false, selected);
}

function deleteLink(){
    rte.document.execCommand('unlink', false, null);
}
</script>
</head>
<body onload="iFrameOn();">
	<input type="button" onclick="deleteLink()" value="delLink">
	<input type="button" onclick="createLink()" value="Link">
	<br />
	<iframe name="rte" id="rte" style="border:#000000 1px solid;"></iframe>
	<br />
	<input type="button" onclick="readFrame()" value="Show HTML Output">


</body>
</html>